/**
 * @author [siwi]
 * @email [siwi@siwi.me]
 * @create date 2017-05-30 04:52:27
 * @modify date 2017-05-30 04:52:27
 * @desc [description]
*/
const Router = require('koa-router')
const IndexController = require('../api/IndexController')
const jwtauth = require('../middleware/auth-jwt')
const api = new Router({
  prefix: '/v1'
})
api.use(jwtauth)

api.get('/', IndexController.index)
api.post('/test', IndexController.test)
api.post('/verify', IndexController.verify)
api.get('/users', IndexController.users)

module.exports = api